﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;

namespace Mang24k99.Model.SPECT
{
    [ActiveRecord(Table = "KT_SPECT_SUBTYPE_History")]
    public partial class MKtSpectSubtypeHistory : ActiveRecordBase
    {
        public static IList<MKtSpectSubtypeHistory> SelectAll()
        {
            return (IList<MKtSpectSubtypeHistory>)FindAll(typeof(MKtSpectSubtypeHistory));
        }
        public static MKtSpectSubtypeHistory SelectByPrimaryKey(object ID)
        {
            return (MKtSpectSubtypeHistory)FindByPrimaryKey(typeof(MKtSpectSubtypeHistory), ID);
        }
        public static IList<MKtSpectSubtypeHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtSpectSubtypeHistory>)FindAllByProperty(typeof(MKtSpectSubtypeHistory), property, value);
        }
        public static IList<MKtSpectSubtypeHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtSpectSubtypeHistory>)SlicedFindAll(typeof(MKtSpectSubtypeHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the SubjectType.()
        /// </summary>
        /// <value>The SubjectType.</value>
        [Property("SUBJECT_TYPE")]
        public int? SubjectType
        {
            get
            {
                return _SubjectType;
            }
            set
            {
                _SubjectType = value;
            }
        }


        /// <summary>
        /// Gets or sets the SubjectTypename.()
        /// </summary>
        /// <value>The SubjectTypename.</value>
        [Property("SUBJECT_TYPENAME")]
        public string SubjectTypename
        {
            get
            {
                return _SubjectTypename;
            }
            set
            {
                _SubjectTypename = value;
            }
        }


        /// <summary>
        /// Gets or sets the TitleDisplay.()
        /// </summary>
        /// <value>The TitleDisplay.</value>
        [Property("TITLE_DISPLAY")]
        public string TitleDisplay
        {
            get
            {
                return _TitleDisplay;
            }
            set
            {
                _TitleDisplay = value;
            }
        }


        /// <summary>
        /// Gets or sets the AddresDsplay.()
        /// </summary>
        /// <value>The AddresDsplay.</value>
        [Property("ADDRES_DSPLAY")]
        public string AddresDsplay
        {
            get
            {
                return _AddresDsplay;
            }
            set
            {
                _AddresDsplay = value;
            }
        }


        /// <summary>
        /// Gets or sets the DisplayNum.()
        /// </summary>
        /// <value>The DisplayNum.</value>
        [Property("DISPLAY_NUM")]
        public int? DisplayNum
        {
            get
            {
                return _DisplayNum;
            }
            set
            {
                _DisplayNum = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _SubjectType;

        private string _SubjectTypename;

        private string _TitleDisplay;

        private string _AddresDsplay;

        private int? _DisplayNum;

        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;

    }
}
